package cc.admin.modules.sys.entity;

import cc.admin.poi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 许可管理
 * Sys licence
 *
 * @author 赵森涛
 * @date 2023.02.16 17:14:22
 * @description description
 * @Version: V1.0.0
 */
@Data
@TableName("sys_licence")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sys_licence对象", description="")
public class SysLicence {

    /***/
    @Excel(name = "", width = 15)
    @ApiModelProperty(value = "")
    private String id;
    /**许可名称*/
    @Excel(name = "许可名称", width = 15)
    @ApiModelProperty(value = "许可名称")
    private String licenceName;
    /**说明信息*/
    @Excel(name = "说明信息", width = 15)
    @ApiModelProperty(value = "说明信息")
    private String description;
    /**合同编号*/
    @Excel(name = "合同编号", width = 15)
    @ApiModelProperty(value = "合同编号")
    private String contractNumber;
    /**所属公司id*/
    @Excel(name = "所属公司id", width = 15)
    @ApiModelProperty(value = "所属公司id")
    private String companyId;
    /**所属公司名称*/
    @Excel(name = "所属公司名称", width = 15)
    @ApiModelProperty(value = "所属公司名称")
    private String companyName;
    /**许可生效时间*/
    @Excel(name = "许可生效时间", width = 15)
    @ApiModelProperty(value = "许可生效时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date forceDate;
    /**许可失效时间*/
    @Excel(name = "许可失效时间", width = 15)
    @ApiModelProperty(value = "许可失效时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date deadDate;
    /**包含的模块ids*/
    @Excel(name = "包含的模块ids", width = 15)
    @ApiModelProperty(value = "包含的模块ids")
    private String moduleIds;
    /**包含的模块names*/
    @Excel(name = "包含的模块names", width = 15)
    @ApiModelProperty(value = "包含的模块names")
    private String moduleNames;
    /**包含的船舶ids*/
    @Excel(name = "包含的船舶ids", width = 15)
    @ApiModelProperty(value = "包含的船舶ids")
    private String shipIds;
    /**包含的船舶names*/
    @Excel(name = "包含的船舶names", width = 15)
    @ApiModelProperty(value = "包含的船舶names")
    private String shipNames;
    /***/
    @Excel(name = "", width = 15)
    @ApiModelProperty(value = "")
    private Integer status;
    /***/
    @Excel(name = "", width = 15)
    @ApiModelProperty(value = "")
    private Integer isUsed;
    /***/
    @Excel(name = "", width = 15)
    @ApiModelProperty(value = "")
    private String createBy;
    /***/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /***/
    @Excel(name = "", width = 15)
    @ApiModelProperty(value = "")
    private String updateBy;
    /***/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
